package com.shelpe.services.simbasync.dao;

import com.shelpe.services.simbasync.model.RptAdgroup;
import com.shelpe.services.simbasync.model.RptAdgroupExample;
import com.shelpe.services.simbasync.model.RptAdgroupKey;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RptAdgroupMapper {
    int countByExample(RptAdgroupExample example);

    int deleteByExample(RptAdgroupExample example);

    int deleteByPrimaryKey(RptAdgroupKey key);

    int insert(RptAdgroup record);
    
    int insertBatch(List<RptAdgroup> list);

    int insertSelective(RptAdgroup record);

    List<RptAdgroup> selectByExample(RptAdgroupExample example);

    RptAdgroup selectByPrimaryKey(RptAdgroupKey key);

    int updateByExampleSelective(@Param("record") RptAdgroup record, @Param("example") RptAdgroupExample example);

    int updateByExample(@Param("record") RptAdgroup record, @Param("example") RptAdgroupExample example);

    int updateByPrimaryKeySelective(RptAdgroup record);

    int updateByPrimaryKey(RptAdgroup record);
    
    Date getLastTimeFromRpt(@Param("user_id") long userId, @Param("campaign_id") long campaignId, @Param("adgroup_id") long adgroupId);
}